<include file="public:header" />
<div class="allpagetop">数据库管理<strong>/</strong>还原</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">数据库</div>
				<div class="topnav">
			          <a href="{:RU('database/index')}" <if condition="ACTION_NAME eq 'index'">class="select"</if>>备份</a>
					  <a href="{:RU('database/restore')}" <if condition="ACTION_NAME eq 'restore'">class="select"</if>>还原</a>
					  <a href="{:RU('database/optimize')}" <if condition="ACTION_NAME eq 'lists'">class="optimize"</if>>优化</a>
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  
    <form id="form1" name="form1" method="post" action="{:RU('Database/del')}">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:30%;"><label id="chkAll" class="left_txt_td"><input type="checkbox" name="chkAll"  id="chk" title="全选/反选" />备份名称</label></div>
		<div class="td2" style=" width:15%;">版本</div>
		<div class="td3 admin_list_center" style=" width:15%;">MySQL版本</div>
		<div class="td4 admin_list_center" style=" width:15%;">备份时间</div>
		<div class="td5 admin_list_center" style=" width:15%;">尺寸</div>
		<div class="td6" style=" width:10%;">  <div class="admin_list_right">操作&nbsp;&nbsp;&nbsp;&nbsp;</div></div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <volist name="list" id="vo">
					   <div class="admin_list_tr link_bk">
						<div class="td1" style=" width:30%;">
					
						  <label class="left_txt_td striking">
								<input name="name[]" type="checkbox"  value="{$vo.name}" />
       {$vo.name}</label>
					
						</div>
						<div class="td2 striking" style=" width:15%;">{$vo.yangtata_ver}</div>
						<div class="td3 admin_list_center" style=" width:15%;">{$vo.mysql_ver}</div>
						<div class="td4 admin_list_center" style=" width:15%;">{$vo.date_str}</div>
						<div class="td4 admin_list_center" style=" width:15%;">{$vo.total_size} <em  style="font-size:10px;">MB</em></div>
						<div class="td5" style=" width:10%;">
									  <div class="admin_list_right link_blue">
									  <a href="{:RU('import',array('name'=>$vo['name']))}" onclick="if(confirm('还原将覆盖现有数据，你确定要这么做吗？')){document.getElementById('list').style.display='none';document.getElementById('btn_table').style.display='none';document.getElementById('hide').style.display='block';}else{return !1;}">还原</a>
									  <a href="{:RU('del',array('name'=>$vo['name']))}"  onclick="return confirm('你确定要删除吗？')">删除</a>
									  </div>
						</div>
					  <div class="clear"></div>
					  </div>
	   </volist>
	  
	
	  
      

  
  
    <empty name="list">
    <div class="admin_list_no_info">没有任何信息！</div>
    </empty>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
 
				<input name="提交"  type="button" class="admin_submit" id="ButDel"   value="删除所选"/>
			  </div>
			  
			  
			   
	</div>
	
   </form>
    <div class="uupage">{$page}</div>
</div>
<include file="public:footer" />
<script type="text/javascript">
    $(document).ready(function()
    {
        //点击批量取消    
        $("#ButDel").click(function(){
            if (confirm('你确定要删除吗？'))
            {
                $("form[name=form1]").submit()
            }
        });
    });
</script>
</body>
</html>